import { create } from 'zustand'

export type StoreState = {
  flowData:{
    [key:string]:{
      count: number;
    }
  },
  setData: (flowData:StoreState['flowData']) => void;
}

export const useStore = create<StoreState>((set) => ({
  flowData:{},
  setData: (flowData:StoreState['flowData']) => {
    set({flowData})
  },
})) 